package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.common.persistence.model.Employee;
import com.stylefeng.guns.modular.system.dao.EmployeeDao;
import com.stylefeng.guns.modular.system.service.EmployeeService;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 菜单服务
 *
 * @author yanqb
 * @date 2018-05-17 11:10
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {

    @Resource
    private EmployeeDao mapper;

    @Override
    public List<Employee> search(@Param("name") String name) {
        return mapper.search(name);
    }

    @Override
    public Employee getEmployee(Integer id) {
        return mapper.getEmployee(id);
    }
}
